package cn.domob.android.ads;

import android.content.Context;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;

public class DomobInterstitialAd
{
  public static final String INTERSITIAL_SIZE_300X250 = "300x250";
  public static final String INTERSITIAL_SIZE_600X500 = "600x500";
  public static final String INTERSITIAL_SIZE_FULL_SCREEN;
  private static J a = new J(DomobInterstitialAd.class.getSimpleName());
  private w b;

  static
  {
    INTERSITIAL_SIZE_FULL_SCREEN = null;
  }

  public DomobInterstitialAd(Context paramContext, String paramString1, String paramString2)
  {
    this.b = new w(paramContext, paramString1, paramString2);
  }

  public DomobInterstitialAd(Context paramContext, String paramString1, String paramString2, int paramInt1, int paramInt2, int paramInt3)
  {
    Drawable localDrawable1;
    try
    {
      Drawable localDrawable2 = paramContext.getResources().getDrawable(paramInt1);
      localDrawable1 = localDrawable2;
      this.b = new w(paramContext, paramString1, paramString2, localDrawable1, paramInt2, paramInt3);
      return;
    }
    catch (Exception localException)
    {
      localDrawable1 = null;
    }
  }

  public DomobInterstitialAd(Context paramContext, String paramString1, String paramString2, BorderType paramBorderType)
  {
    this.b = new w(paramContext, paramString1, paramString2, paramBorderType);
  }

  public boolean isInterstitialAdReady()
  {
    return this.b.n();
  }

  public void loadInterstitialAd()
  {
    if (this.b.o())
      return;
    this.b.m();
  }

  public void setInterstitialAdListener(DomobInterstitialAdListener paramDomobInterstitialAdListener)
  {
    this.b.a(paramDomobInterstitialAdListener);
  }

  public void setKeyword(String paramString)
  {
    this.b.setKeyword(paramString);
  }

  public void setUserBirthdayStr(String paramString)
  {
    this.b.setUserBirthdayStr(paramString);
  }

  public void setUserGender(String paramString)
  {
    this.b.setUserGender(paramString);
  }

  public void setUserPostcode(String paramString)
  {
    this.b.setUserPostcode(paramString);
  }

  public void showInterstitialAd(Context paramContext)
  {
    if (this.b.n())
    {
      a.b("Show Interstitial View.");
      this.b.a(paramContext);
      return;
    }
    a.d(this, "Interstial ad is not ready");
  }

  public static enum BorderType
  {
    static
    {
      Black = new BorderType("Black", 1);
      None = new BorderType("None", 2);
      BorderType[] arrayOfBorderType = new BorderType[3];
      arrayOfBorderType[0] = White;
      arrayOfBorderType[1] = Black;
      arrayOfBorderType[2] = None;
      a = arrayOfBorderType;
    }
  }
}

/* Location:           C:\Users\god\Desktop\liunianjishiben_V1.1_mumayi_3745b_dex2jar.jar
 * Qualified Name:     cn.domob.android.ads.DomobInterstitialAd
 * JD-Core Version:    0.5.4
 */